//
//  YSRegisterRes.m
//  Yueshi
//
//  Created by Northwan on 15/7/24.
//  Copyright (c) 2015年 悦食中国. All rights reserved.
//

#import "YSRegisterRes.h"

@implementation YSRegisterRes

-(void)saveInfo{
    [DefaultsHelper setObject:self.screatKey forKey:kServerSecret];
    [DefaultsHelper setObject:self.userId forKey:kUserId];
    [DefaultsHelper setObject:self.token forKey:kAppToken];
}

-(void)saveUserInfo{
    [DefaultsHelper setInteger:self.userGender forKey:kUserGender];
    [DefaultsHelper setObject:self.userImg forKey:kHeadImg];
    [DefaultsHelper setObject:self.phoneCode forKey:kUserPhone];
    [DefaultsHelper setObject:self.nickName forKey:kNickName];
}

@end
